<?php
namespace app\admin\controller;
use think\Controller;
use think\Db;
use think\Session;

/**
 * Class Update 更新记录控制器
 * @package app\admin\controller
 */
class Update extends Controller{

    public function index(){

        $user=Session::get('user_id');

        if (!empty($user)){
            //判断是否有session

            return $this->fetch();
        }else{

            $this->redirect('admin/login/index');
        }


    }


}